<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../css/front.css" rel="stylesheet" type="text/css" />
<link href="../css/frontstyle.css" rel="stylesheet" type="text/css" />
  <title>校社联_文件管理</title>
  	<script language="javascript"> 
		function check()
		{
			    if(document.form1.resources_name.value=="")
				{
					alert("资源名称不能为空");
					document.form1.resources_name.focus();
					return;
				}
				else if(document.form1.resources_introduction.value=="")
				{
					alert("介绍不能为空");
					document.form1.resources_introduction.focus();
					return;
				}else
				{form1.submit();}
		} 
	</script>

  </head>
  
  <body>
    

<div id="fronttop">
  <div class="fronttou">
    <img src="../pictures/shidaxiaohui.jpg" width="149" height="105" />
    东北师范大学学生社团联合会
</div>
  <div id="fronttopnavigation">
    <table width="995" height="50" border="0" align="center">
      <tr>
        <td width="71"><div align="center" class="STYLE2" ><a href="../index.jsp">首页</a></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="../shetuanjieshao.jsp">社团介绍</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="../darenxiu.jsp">达人秀</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="../shetuanxinwen.jsp">社团新闻</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="../sheliandongtai.jsp">社联动态</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="../huodonggonggao.jsp">活动公告</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="../gongtongguanzhu.jsp">共同关注</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="resources/resources_download.jsp">文件下载</a></span></div></td>
        <td width="71"><div align="center" class="STYLE2"><a href="../woyaoliuyan.jsp">我要留言</a></div></td>
      </tr>
    </table>
  </div>
  <div id="fronttopflash"><img src="../pictures/shida.jpg" width="994" height="260"></div>
</div>
<div id="frontlittlenavigation">
  <table width="990" height="34" border="0">
    <tr>
      <td width="984">&nbsp;&nbsp;&nbsp;&nbsp;当前位置：<a href="../index.jsp">首页</a>&gt;&gt;消息管理&gt;&gt;列表 </td>
    </tr>
  </table>
</div>
<div id="frontarticle">
  <div id="frontarticlelefthot">
    <table width="236" height="226" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="cebianlan"	 >
      <tr >
        <td height="54"><div align="left" style="font-size:20px"  class="hengxian">当前用户：校社联</div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="../xiaoshelian_xiaoxiguanli.jsp"><h3>消息管理</h3></a></div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="../liuyanban_list2.jsp"><h3>留言板管理</h3></a></div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="resources/resources.jsp"><h3>文件管理</h3></a></div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="../xiaoshelian_shetuanguanli.jsp"><h3>社团管理</h3></a></div></td>
      </tr>
       <tr>
        <td height="54"><div align="center" class="hengxian"><a href="../xiaoshelian_qitahuodong.jsp"><h3>其他活动管理</h3></a></div></td>
      </tr>
    </table>
  </div>
  <div id="frontarticlemain" class="cebianlan" style="height:500px">
    	<%
    String errors=(String)request.getAttribute("errors");
    if(errors==null||errors.equals(""))
          errors="<li>请选择要上传的文件！</li>";
   %>
   
<!-- 在这 method要通过post方式提交，同时需在 form中加入enctype="multipart/form-data",表示文件以流的方式上传。-->  
 <form name="form1" method="post" action="resources_add_chuli.jsp" enctype="multipart/form-data">
  	<table border="1" align="center" width="700px">
			<tr height="30px">
			    <td>
				  请先上传资源(不可以空)
				</td>
			</tr>
			<tr>
				<td>文件：<input type="file" name="file" size="30" ></td>
	
			</tr>
			<tr height="30px">
				<td>
					资源名称（必填）：
					<input type="text" name="resources_name" id="resources_name"  style="width:400px;height:30px"/>
				</td>
			</tr>
			<tr height="30px">
				<td>介绍（必填）：
					<input type="text" name="resources_introduction" id="resources_introduction"  style="width:700px;height:100px" />
				</td>
			</tr>
			<tr height="30px">
				<td>
					是否推荐：
					<input type="radio" name="resources_isrecommend" id="resources_isrecommend" value="1" checked />
					是
					<input name="resources_isrecommend" type="radio" id="resources_isrecommend" value="0" />
					否
				</td>
			</tr>
			<tr height="30px">
			    <td>
			        <input type="button" name="button2" value="提交" onClick="check()" class="anniu" />
	                <input type="reset" name="Reset" value="重置"  class="anniu"/>
			    </td>
			</tr>
    </table>
    
 </form>
  </div>
  <div id="apDiv1">

    <div id="frontcopyright">

      <div>
        <div align="center"> 2012-2050 东北师范大学学生社团联合会</div>
      </div>
      <div> </div>
      <div>
        <div align="center">制作：杜娟 吴琼 张宇梁 张建颖 焦书海 张家鑫</div>
      </div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
    </div>
  </div>
</div>
    
  </body>
</html>
